{extend name="../../admin/view/main"}

{block name="button"}

<!--{if auth("config")}-->
<button class='layui-btn layui-btn-sm layui-btn-primary' data-modal='{:url("config")}'>组均能效默认配置</button>
<!--{/if}-->

{/block}

{block name='content'}
<div class="think-box-shadow">
    {include file='report/statistics_daily_output/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class="text-left nowrap">城市</th>
            <th class="text-left nowrap">现有人力</th>
            <th class="text-left nowrap">现有组人力</th>
            <th class="text-left nowrap">组均能效</th>
            <th class="text-left nowrap">日均去化能力</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class="text-left nowrap">{$vo.from_city|default=''}</td>

            {if $showPeoplePowerInput}
            <td class='list-table-sort-td'>
                <label><input data-action-blur="{:url('edit')}" data-value="id#{$vo.id};people_power#{value}" data-loading="false" value="{$vo.people_power}" class="list-sort-input" type="number"></label>
            </td>
            {else}
                <td class="text-left nowrap">{$vo.people_power|default=''}</td>
            {/if}

            <td class="text-left nowrap">{$vo.real_group_power|default=''}</td>
            <td class="text-left nowrap">{$vo.energy|default=''}</td>
            <td class="text-left nowrap">{$vo.group_energy|default=''}</td>
        </tr>
        {/foreach}

        <tr>
            <td class="text-left nowrap">合计</td>
            <td class="text-left nowrap">{$sumList.sum_people_power|default=0}</td>
            <td class="text-left nowrap">{$sumList.sum_real_group_power|default=0}</td>
            <td class="text-left nowrap">{$sumList.sum_energy|default=0}</td>
            <td class="text-left nowrap">{$sumList.sum_group_energy|default=0}</td>
            <td class="text-left nowrap"></td>
        </tr>
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}